package com.itheima.pinda.DTO.entity.pojo.truck;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 车辆类型与货物类型关联表
 * </p>
 *
 * @author xy
 * @since 2021-11-09
 */
@Data
@ApiModel(value = "PdTruckTypeGoodsType" ,description = "车辆类型与货物类型关联")
@TableName(value = "pd_truck_type_goods_type")
@EqualsAndHashCode(callSuper = false)
public class PdTruckTypeGoodsType extends Model<PdTruckTypeGoodsType> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_UUID )
    @ApiModelProperty("关联编号")
    private String id;

    /**
     * 车辆类型id
     */
    @ApiModelProperty("车辆类型id")
    private String truckTypeId;

    /**
     * 货物类型id
     */
    @ApiModelProperty("货物类型id")
    private String goodsTypeId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
